// Copyright 2012 The Chroma Authors. All rights reserved. See the LICENSE file.

package white

// Color space conversion matrices

// Color space conversion to/from XYZ; color spaces adapted to D65
// CIE 1931 XYZ color space
var xyz_sRGBd65 = [3][3]float64{{0.4124564, 0.3575761, 0.1804375},
	{0.2126729, 0.7151522, 0.0721750},
	{0.0193339, 0.1191920, 0.9503041}}

var sRGBd65_xyz = [3][3]float64{{3.2404542, -1.5371385, -0.4985314},
	{-0.9692660, 1.8760108, 0.0415560},
	{0.0556434, -0.2040259, 1.0572252}}

// Color space conversion to/from XYZ; color spaces adapted to D50 using Bradford transform
var xyz_sRGB = [3][3]float64{{0.4360747, 0.3850649, 0.1430804},
	{0.2225045, 0.7168786, 0.0606169},
	{0.0139322, 0.0971045, 0.7141733}}

var sRGB_xyz = [3][3]float64{{3.1338561, -1.6168667, -0.4906146},
	{-0.9787684, 1.9161415, 0.0334540},
	{0.0719453, -0.2289914, 1.4052427}}

var xyz_adobe = [3][3]float64{{0.6097559, 0.2052401, 0.1492240},
	{0.3111242, 0.6256560, 0.0632197},
	{0.0194811, 0.0608902, 0.7448387}}

var adobe_xyz = [3][3]float64{{1.9624274, -0.6105343, -0.3413404},
	{-0.9787684, 1.9161415, 0.0334540},
	{0.0286869, -0.1406752, 1.3487655}}

var xyz_prophoto = [3][3]float64{{0.7976749, 0.1351917, 0.0313534},
	{0.2880402, 0.7118741, 0.0000857},
	{0.0000000, 0.0000000, 0.8252100}}

var prophoto_xyz = [3][3]float64{{1.3459433, -0.2556075, -0.0511118},
	{-0.5445989, 1.5081673, 0.0205351},
	{0.0000000, 0.0000000, 1.2118128}}

var xyz_widegamut = [3][3]float64{{0.7161046, 0.1009296, 0.1471858},
	{0.2581874, 0.7249378, 0.0168748},
	{0.0000000, 0.0517813, 0.7734287}}

var widegamut_xyz = [3][3]float64{{1.4628067, -0.1840623, -0.2743606},
	{-0.5217933, 1.4472381, 0.0677227},
	{0.0349342, -0.0968930, 1.2884099}}

var xyz_bruce = [3][3]float64{{0.4941816, 0.3204834, 0.1495550},
	{0.2521531, 0.6844869, 0.0633600},
	{0.0157886, 0.0629304, 0.7464909}}

var bruce_xyz = [3][3]float64{{2.6502856, -1.2014485, -0.4289936},
	{-0.9787684, 1.9161415, 0.0334540},
	{0.0264570, -0.1361227, 1.3458542}}

var xyz_beta = [3][3]float64{{0.6712537, 0.1745834, 0.1183829},
	{0.3032726, 0.6637861, 0.0329413},
	{0.0000000, 0.0407010, 0.7845090}}

var beta_xyz = [3][3]float64{{1.6832270, -0.4282363, -0.2360185},
	{-0.7710229, 1.7065571, 0.0446900},
	{0.0400013, -0.0885376, 1.2723640}}

var xyz_best = [3][3]float64{{0.6326696, 0.2045558, 0.1269946},
	{0.2284569, 0.7373523, 0.0341908},
	{0.0000000, 0.0095142, 0.8156958}}

var best_xyz = [3][3]float64{{1.7552599, -0.4836786, -0.2530000},
	{-0.5441336, 1.5068789, 0.0215528},
	{0.0063467, -0.0175761, 1.2256959}}
